package com.ruoyi.service.region.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 省市县表
 * </p>
 *
 * @author Zane
 * @since 2025-10-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_region")
public class RegionEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 父级ID
     */
    @TableField("pid")
    private Integer pid;

    /**
     * 直辖市
     */
    @TableField("type")
    private Integer type;

    /**
     * 层级
     */
    @TableField("level")
    private Integer level;

    /**
     * 拼音
     */
    @TableField("pinyin")
    private String pinyin;

    @TableField("is_delete")
    private Integer isDelete;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
